package com.se.xb.dao;

import com.se.xb.entity.Dept;
import org.springframework.jdbc.core.BeanPropertyRowMapper;

import java.util.List;

public class DeptDao extends BaseDao{

    public List<Dept> getDeptList() {
        String sql = "select * from dept";
        return jdbcTemplate.query(sql, new BeanPropertyRowMapper<Dept>(Dept.class));
    }
}
